//
//  sqliteCore.h
//  iHedron
//
//  Created by George Radev on 2011-07-24.
//  Copyright 2011 I Me Mine. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "sqlite3.h"

@interface SQLiteCore : NSObject  {}
+ (void)load;
+ (void)initialize;
+ (id)new;
+ (id)allocWithZone:(NSZone *)zone;
+ (id)alloc;

// static messages
+(void) init;
+(void) done;
+(sqlite3_stmt*) prepare: (char*) sql;
+(BOOL) queryDDL: (char*) sql;
+(BOOL) ddl: (sqlite3_stmt*) statement;
+(BOOL) next: (sqlite3_stmt*) statement;
+(void) close: (sqlite3_stmt*) statement;

+(BOOL) commit;
+(BOOL) rollback;
+(BOOL) beginTransaction;

+(long) lastROWID;

+(NSString*) getString: (sqlite3_stmt*) statement index:(int) i;
@end
